

m=cv2.merge([b,g,r])

img=cv2.imread('C:\puppy.jpg')
b=img[:,:,0]
g=img[:,:,1]
r=img[:,:,2]
m1=cv2.merge((b,g,r))
m2=cv2.merge((r,g,b))